package com.sjsu.cloudmanager.client.ui.model;

import com.extjs.gxt.ui.client.data.BaseTreeModel;

/**
 * Lab tree bean used by UI layer
 * User: ckempaiah
 * Date: 9/24/11
 * Time: 2:49 AM
 * To change this template use File | Settings | File Templates.
 */
public class LabTreeBean extends BaseTreeModel {

    public LabTreeBean(Integer id, String name){
        set("id", id);
        set("name", name);
    }

    public LabTreeBean(Integer id, String name, BaseTreeModel[] children){
        this(id,name);
        for(BaseTreeModel childTreeModel: children){
            add(childTreeModel);
        }
    }
    public Integer getId(){
        return get("id");
    }


    public String getName(){
        return get("name");
    }
}
